<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WateraffHour extends Model
{
    use \App\Models\Traits\Site;
    use \App\Models\Traits\ScopeCompanySite;
    
    protected $table = 't_wateraff_hour';
    
    protected $primaryKey = 'id';
    
    protected $fillable = [
    
    ];
    
    public $timestamps = false;
    
    public function getCompanyField() {
        return 'company_id';
    }
    
    public function getSiteField() {
        return 'site_id';
    }
    
    public function scopeDate($query, $date) {
        return $query->where('at_date', $date);
    }
}
